<?php


namespace app\models\request;


use app\components\CodeValidator;
use yii\base\Model;

class ReqRegister extends Model
{
    private $userName;
    private $password;
    private $userEmail;
    private $shopName;
    private $schemeType;
    private $connectName;
    private $connectPhone;
    private $mark;

    private $code;
    private $typeName="register";

    /**
     * @return string
     */
    public function getTypeName()
    {
        return $this->typeName;
    }

    /**
     * @param string $typeName
     */
    public function setTypeName($typeName)
    {
        $this->typeName = $typeName;
    }







    /**
     * @return mixed
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * @param mixed $code
     */
    public function setCode($code)
    {
        $this->code = $code;
    }

    /**
     * @return mixed
     */
    public function getSessionId()
    {
        return $this->sessionId;
    }

    /**
     * @param mixed $sessionId
     */
    public function setSessionId($sessionId)
    {
        $this->sessionId = $sessionId;
    }



    /**
     * @return mixed
     */
    public function getUserName()
    {
        return $this->userName;
    }

    /**
     * @param mixed $userName
     */
    public function setUserName($userName)
    {
        $this->userName = $userName;
    }

    /**
     * @return mixed
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param mixed $password
     */
    public function setPassword($password)
    {
        $this->password = $password;
    }

    /**
     * @return mixed
     */
    public function getUserEmail()
    {
        return $this->userEmail;
    }

    /**
     * @param mixed $userEmail
     */
    public function setUserEmail($userEmail)
    {
        $this->userEmail = $userEmail;
    }

    /**
     * @return mixed
     */
    public function getShopName()
    {
        return $this->shopName;
    }

    /**
     * @param mixed $shopName
     */
    public function setShopName($shopName)
    {
        $this->shopName = $shopName;
    }

    /**
     * @return mixed
     */
    public function getSchemeType()
    {
        return $this->schemeType;
    }

    /**
     * @param mixed $schemeType
     */
    public function setSchemeType($schemeType)
    {
        $this->schemeType = $schemeType;
    }

    /**
     * @return mixed
     */
    public function getConnectName()
    {
        return $this->connectName;
    }

    /**
     * @param mixed $connectName
     */
    public function setConnectName($connectName)
    {
        $this->connectName = $connectName;
    }

    /**
     * @return mixed
     */
    public function getConnectPhone()
    {
        return $this->connectPhone;
    }

    /**
     * @param mixed $connectPhone
     */
    public function setConnectPhone($connectPhone)
    {
        $this->connectPhone = $connectPhone;
    }

    /**
     * @return mixed
     */
    public function getMark()
    {
        return $this->mark;
    }

    /**
     * @param mixed $mark
     */
    public function setMark($mark)
    {
        $this->mark = $mark;
    }


    public function rules()
    {
        return [
            [['userName','password','userEmail','shopName','schemeType','connectName','connectPhone','mark','code'], 'required'],

            ['code', CodeValidator::class],
        ];
    }



}



